package com.zbkj.admin.controller;

import com.zbkj.admin.service.AdminPeEnquiryHandleService;
import com.zbkj.common.request.enquiry.ReportRequest;
import com.zbkj.common.response.CommonResult;
import com.zbkj.common.response.enquiry.EnquiryReportResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/admin/enquiry")
@Api(tags = "服务端-合作伙伴管理服务")
public class AdminPeEnquiryController {

    @Autowired
    private AdminPeEnquiryHandleService adminPeEnquiryHandleService;

    @ApiOperation(value="询价统计")
    @PostMapping("/enquiryReqort")
    public CommonResult<EnquiryReportResponse> enquiryReqort(@RequestBody ReportRequest reportRequest) {
        return CommonResult.success((adminPeEnquiryHandleService.enquiryReqort(reportRequest)));
    }
}
